<?PHP

global $conf;

if($conf->a['fbenable'])
{
?>


<div id="fb-root"></div>

<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
  FB.init({appId: '<?PHP echo $conf->a["fbappid"]?>', status: true, cookie: true, xfbml: true});
  FB.Event.subscribe('auth.login', function(response) {
//     window.location.reload();

   });



</script>


<?PHP

}


?>
